import request from '@/utils/request'


export function getGradeList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/distribution/admin/grade/getList',
    method: 'post',
    data: query
  })
}   
  

export function saveGrade(query) {
    return request({
      url: '/distribution/admin/grade/save',
      method: 'post',
      data: query
    })
  }
  
  export function copyGrade(query) {
    return request({
      url: '/distribution/admin/grade/copy',
      method: 'post',
      data: query
    })
  }
  
  export function removeGrade(query) {
    return request({
      url: '/distribution/admin/grade/remove',
      method: 'post',
      data: query
    })
  }
  export function getGradeDetail(query) {
    if(query != undefined){
      query = JSON.parse(JSON.stringify(query))
    }
    return request({
      url: '/distribution/admin/grade/getDetail',
      method: 'post',
      data: query
    })
  }